home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
mac
/
LOGIC Apple II 5.25" Library - ProDOS
/
PRO039.dsk
/
TIME.OUT.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
733b
|
16 lines
10 & SCRN( 0): & INPUT (3)
100 & HOME : PRINT "TIME OUT DEMO": PRINT : PRINT : PRINT
110 PRINT "Enter a number from 1 to 255"
120 PRINT "(each unit equals 20 seconds)": PRINT
130 & TIMER STOP : & INPUT (2)
140 INPUT "Inactivity timeout duration? ";T
150 & TIMER(T): & WHEN NOT ON LINE GOTO 200: & TIMER ON
160 PRINT "Don't press a key for "T *20" seconds."
170 PRINT "You'll be asked a question shortly."
180 PRINT "After answering, press Return.": PRINT
190 PRINT "Wait...";: GET A$
200 PRINT : PRINT : PRINT "That's what it looks like when a"
210 PRINT "timeout occurs. Don't answer"
220 PRINT "next time, and see what it does.": PRINT
230 PRINT "Try the timer in immediate mode, too."
240 & TIMER STOP